WebTextEditor provides a method to implement document import during client side event.
In this topic, you will learn how to import a document.
To import document to WebTextEditor
- Set the EnableDocumentImport property in the WebTextEditor to True. This will add a new command, Import Command, to the WebTextEditor toolbar.
- The import function implementation is done during onToolBarClick client side event of WebTextEditor. Here is the snippet:
C#
Copy Codefunction WebTextEditor1_OnToolBarClick(controlId, command, commandSection) { var rte = ISGetObject(controlId); if (command.Name == "cmdImport") alert("implement document import"); }